package com.ybzl.mini.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
@TableName("mini_banners")
public class MiniBanners {

    @TableId("id")
    private Long id;

    @TableField("banner_url")
    private String bannerUrl;

    /**
     * 0:跳转商品，1:跳转文章
     */
    @TableField("jump_type")
    private Integer jumpType;

    /**
     * 跳转资源id
     */
    @TableField("source_id")
    private Long sourceId;

    /**
     * 0正常1停用
     */
    @TableField(value = "status")
    private String status;

    /**
     * 跳转资源标题
     */
    @TableField("source_name")
    private String sourceName;

    @TableField("create_user")
    private String createUser;

    @TableField("update_user")
    private String updateUser;

    @TableField("sort")
    private Integer sort;

    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @TableField("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}
